import {legacy_createStore as createStore,combineReducers,applyMiddleware} from 'redux';
import reduxThunk from 'redux-thunk';
import cartReducer from '@/redux/reducer/cartReducer'
import tokenReducer from '@/redux/reducer/tokenReducer'
let reducer = combineReducers({
    cartReducer,
    tokenReducer
})
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose
let store = createStore(reducer,composeEnhancers(applyMiddleware(reduxThunk)));

export default store;